"""Offline Bzlmod demo with local_path_override for rules_cc"""

module(
    name = "my_project",
    version = "0.1",
    compatibility_level = 1,
)

# 这里声明要用 rules_cc（但不会去下载）
bazel_dep(name = "rules_cc", version = "0.0.8")

# # 关键：使用本地路径覆盖 rules_cc
local_path_override(
    module_name = "rules_cc",
    path = "/data/TUTORIAL/bazel-tutorial/third_party/rules_cc-0.0.8",
)

local_path_override(
    module_name = "platforms",
    path = "/data/TUTORIAL/bazel-tutorial/third_party/platforms-0.0.7",
)

local_path_override(
    module_name = "bazel-skylib",
    path = "/data/TUTORIAL/bazel-tutorial/third_party/bazel-skylib-1.3.0",
)

# single_version_override(
#     name = "rules_cc",
#     version = "0.0.9",
# )
